package com.tsxy.mall.service.impl;

import com.tsxy.mall.mapper.CollegeMapper;
import com.tsxy.mall.service.CollegeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CollegeServiceImpl implements CollegeService {
    @Autowired
    private CollegeMapper collegeMapper;
    @Override
    public List getAll() {
        return collegeMapper.getAll();
    }

    @Override
    public List getParent() {
        return collegeMapper.getParent();
    }

    @Override
    public List getByParent(Integer id) {
        return collegeMapper.getByParent(id);
    }

}
